package com.ksm.domain.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "T_EXERCICE")
@NamedQueries({ @NamedQuery(name = Exercice.FIND_BY_ANNEE, query = "" + "	SELECT e FROM Exercice e " + "	WHERE e.annee = :" + Exercice.ANNEE_PARAM) })
public class Exercice extends GenericEntity {

	private String annee;

	@Column(unique = true)
	public String getAnnee() {
		return annee;
	}

	public void setAnnee(String annee) {
		this.annee = annee;
	}

	public static final String FIND_BY_ANNEE = "Exercice.findByAnnees";
	public static final String ANNEE_PARAM = "anneeParam";
}
